Skip to main content

Browser

Type

widget

Summary

This widget displays web content within a native web browser view.

The browser widget can display HTML content generated in LiveCode, or fetch content over the Internet. It supports JavaScript and allows for interaction between LiveCode scripts and JavaScript code.

The browser SVG icon is copyright © Ivan Boyko, and is licensed under the terms of the Creative Commons Attribution 3.0 Unported License.

Description

This widget displays web content within a native web browser view.

The browser widget can display HTML content generated in LiveCode, or fetch content over the Internet. It supports JavaScript and allows for interaction between LiveCode scripts and JavaScript code.

The browser SVG icon is copyright © Ivan Boyko, and is licensed under the terms of the Creative Commons Attribution 3.0 Unported License.

Children Properties

Message

NameSummarySyntax
browserDocumentLoadBeginSent when a document begins loading in the browser.browserDocumentLoadBegin <pUrl>
browserDocumentLoadCompleteSent when a document has completed loading in the browser.browserDocumentLoadComplete <pUrl>
browserDocumentLoadFailedSent when a document has failed to load in the browser.browserDocumentLoadFailed <pUrl>, <pError>
browserFrameDocumentLoadBeginSent when a document begins loading in a frame of the browser.browserFrameDocumentLoadBegin <pUrl>
browserFrameDocumentLoadCompleteSent when a document has completed loading in a frame of the browser.browserFrameDocumentLoadComplete <pUrl>
browserFrameDocumentLoadFailedSent when a document has failed to load in a frame of the browser.browserFrameDocumentLoadFailed <pUrl>, <pError>
browserNavigateBeginSent when the browser begins navigation to a new page.browserNavigateBegin <pUrl>
browserNavigateCompleteSent when the browser successfully navigates to a new page.browserNavigateComplete <pUrl>
browserNavigateFailedSent when the browser has failed to navigate to a new page.browserNavigateFailed <pUrl>, <pError>
browserUnhandledLoadRequestSent when the browser is unable to handle a load request.browserUnhandledLoadRequest <pUrl>
browserProgressChangedSent when the load progress of the current document changes.browserProgressChanged <pUrl>, <pProgress>

Property

NameSummarySyntax
htmlTextThe HTML text of the content displayed by the browser.set the htmlText of <widget> to <pHtmlText> get the htmlText of <widget>
allowUserInteractionControls whether the browser responds to user interaction.set the allowUserInteraction of <widget> to <allowInteraction> get the allowUserInteraction of <widget>
userAgentThe identifier sent by the browser when fetching content from remote URLs.set the userAgent of <widget> to <pUserAgent> get the userAgent of <widget>
allowsInlineMediaPlaybackControls if the browser should allow media files to be played embedded in the page.set the allowsInlineMediaPlayback of <widget> to <pEnabled> get the allowsInlineMediaPlayback of <widget>
mediaPlaybackRequiresUserActionControls if the browser should allow media files to require user action to play.set the mediaPlaybackRequiresUserAction of <widget> to <pEnabled> get the mediaPlaybackRequiresUserAction of <widget>
opaqueControls whether the browser draws a background.set the opaque of <widget> to <opaque> get the opaque of <widget>
vScrollbarControls the visibility of the browser's vertical scrollbar.set the vScrollbar of <widget> to <pEnabled> get the vScrollbar of <widget>
javascriptHandlersA list of LiveCode handlers that are made available to JavaScript calls within the browser.set the javascriptHandlers of <widget> to <pHanderList> get the javascriptHandlers of <widget>
URLThe URL displayed by the browser.set the URL of <widget> to <pUrl> get the URL of <widget>
hScrollbarControls the visibility of the browser's horizontal scrollbar.set the hScrollbar of <widget> to <pEnabled> get the hScrollbar of <widget>
isSecureIndicates if all resources in the current document have been loaded through securely encrypted connections.get the isSecure of <widget>